var session = (key, value) => {
    if (value !== undefined) {
        session.set(key, value)
    } else {
        return session.get(key)
    }
}

session.set = (key, value) => {
    window.sessionStorage.setItem(key, value)
}

session.get = (key) => {
    return window.sessionStorage.getItem(key)
}

export default session